<template>
	<view :class="isFixed?'button':'buttonNo'" @click="click">
		<view class="buttonView">{{value}}</view>
	</view>
</template>

<script>
	export default {
		name: "bottomButton",
		props: {
			value: {
				default: '保存'
			},
			isFixed: {
				default: true
			}
		},
		data() {
			return {};
		},
		methods: {
			click() {
				this.$emit("onPress")
			}
		}
	}
</script>

<style lang="scss" scoped>
	.button {
		position: fixed;
		bottom: 61rpx;
		display: flex;
		width: 100%;
		justify-content: center;
	}

	.buttonNo {
		margin-top: 20rpx;
		display: flex;
		width: 100%;
		justify-content: center;
		margin-bottom: 61rpx;
	}

	.buttonView {
		width: 671rpx;
		height: 107rpx;
		background: #F5F5F5;
		border-radius: 13rpx 13rpx 13rpx 13rpx;
		opacity: 1;
		border: 1rpx solid #4aac94;
		background-color: #4aac94;
		justify-content: center;
		color: #fff;
		font-size: 32rpx;
		font-family: Adobe Heiti Std;
		display: flex;
		align-items: center;
	}
</style>